雙曲線回歸方程 HyperbolaRegress.cs
注意!該模型要求a與b的值要大于0!使用該模型時應注意驗證這個限制條件。我在實現模型時未加入任何出錯流程控制。X不能為0。
方程模型為
public override double[] buildFormula()
得到系數數組,存放順序與模型系數相反,即該數組中系數的值依次是b,a。
public override double forecast(double x)
預測函數,根據模型得到預測結果。
public override double computeR2()
標簽:
HyperbolaRegress
模型
方程
cs
上傳時間:
2014-11-30
上傳用戶:youke111